package com.smedi.ismedi.inmail.api.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@ApiModel("任务接口")
@Data
public class TaskRecordResponse {
    @ApiModelProperty("任务ID")
    private Long id;

    @ApiModelProperty("任务来源")
    private String sourceFrom;

    @ApiModelProperty("任务来源ID")
    private Long sourceFromId;

    @ApiModelProperty("发起人Id")
    private Long sponsorId;

    @ApiModelProperty("发起人姓名")
    private String sponsorName;

    /**
     * 任务类型
     */
    @ApiModelProperty("任务类型")
    private String taskType;

    /**
     * 任务名称
     */
    @ApiModelProperty("任务名称")
    private String taskName;

    /**
     * 任务描述
     */
    @ApiModelProperty("任务描述")
    private String taskDescribe;

    /**
     * 项目ID
     */
    @ApiModelProperty("项目ID")
    private Long projectId;

    /**
     * 项目名称
     */
    @ApiModelProperty("项目名称")
    private String projectName;

    /**
     * 处理人ID
     */
    @ApiModelProperty("处理人ID")
    private Long dealPersonId;

    /**
     * 处理人姓名
     */
    @ApiModelProperty("处理人姓名")
    private String dealPersonName;

    /**
     * 抄送人
     */
    @ApiModelProperty(value = "抄送人ids")
    private String noticePersonIds;

    /**
     * 状态
     */
    @ApiModelProperty("任务状态")
    private String taskStatus;

    @ApiModelProperty("任务已读")
    private Boolean taskRead;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime createdDate;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty("处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime taskTime;

    @ApiModelProperty("截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime expireTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime finishTime;
}
